//
//  iWeatherView.swift
//  APSwift
//
//  Created by jianbo.pei on 2023/12/29.
//

import SwiftUI

struct iWeatherView: View {
    var body: some View {
        ZStack {
            LinearGradient(colors: [.blue, .white], startPoint: .topLeading, endPoint: .bottomTrailing)
                .ignoresSafeArea() /// 充满全屏
            
            VStack {
                Text("北京")
                    .font(.system(size: 45))
                    .foregroundStyle(.white)
                
                Image(systemName: "cloud.sun.fill")
                    .renderingMode(.original)
                    .resizable()
                    .scaledToFit()
                    .frame(width: 120, height: 120)
                
                Text("73°")
                    .font(.system(size: 73))
                    .foregroundStyle(.white)
            }
            
        }
    }
}

#Preview {
    iWeatherView()
}
